# -*- encoding:utf-8 -*-
'''
	videoservice.py
	======================
	@descript: 
	@copyright:chinasoft
	@author:guoxiaofei
	@date: 2021-01-27 20:30
	@version:v1.0
'''
from videoproject.items import VideoprojectItem
from entity.videoentity import VideoEntity
from dao.videodao import  VideoDao

class VideoService:
    def __init__(self):
        self.var_VideoDao = VideoDao()
        pass
    def videoSaveToDB(self,item:VideoprojectItem):
        var_videoEntity=VideoEntity(id=None,videoname=item['videoname'],videourl= item['videourl'],videoimage=item['videoimage'])
        var_result=self.var_VideoDao.insertable(var_videoEntity)
        return var_result

    pass
